package hibernate;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * UserInfo entity. @author MyEclipse Persistence Tools
 */

public class UserInfo implements java.io.Serializable {

	// Fields

	private String userName;
	private MyRole myRole;
	private String loginPassword;
	private String powerPassword;
	private String idType;
	private String idNumber;
	private String firstName;
	private String lastName;
	private String gender;
	private String mobilePhone;
	private String email;
	private String address;
	private String telephone;
	private Timestamp enrollDate;
	private Set jointRequestsForResponseUserName = new HashSet(0);
	private Set visitRequests = new HashSet(0);
	private Set houseInfos = new HashSet(0);
	private Set commentInfos = new HashSet(0);
	private Set jointRequestsForRequestUserName = new HashSet(0);
	private Set orderInfos = new HashSet(0);
	private Set favorites = new HashSet(0);

	// Constructors

	/** default constructor */
	public UserInfo() {
	}

	/** minimal constructor */
	public UserInfo(String userName, String loginPassword, String idType,
			String idNumber, String firstName, String lastName) {
		this.userName = userName;
		this.loginPassword = loginPassword;
		this.idType = idType;
		this.idNumber = idNumber;
		this.firstName = firstName;
		this.lastName = lastName;
	}

	/** full constructor */
	public UserInfo(String userName, MyRole myRole, String loginPassword,
			String powerPassword, String idType, String idNumber,
			String firstName, String lastName, String gender,
			String mobilePhone, String email, String address, String telephone,
			Timestamp enrollDate, Set jointRequestsForResponseUserName,
			Set visitRequests, Set houseInfos, Set commentInfos,
			Set jointRequestsForRequestUserName, Set orderInfos, Set favorites) {
		this.userName = userName;
		this.myRole = myRole;
		this.loginPassword = loginPassword;
		this.powerPassword = powerPassword;
		this.idType = idType;
		this.idNumber = idNumber;
		this.firstName = firstName;
		this.lastName = lastName;
		this.gender = gender;
		this.mobilePhone = mobilePhone;
		this.email = email;
		this.address = address;
		this.telephone = telephone;
		this.enrollDate = enrollDate;
		this.jointRequestsForResponseUserName = jointRequestsForResponseUserName;
		this.visitRequests = visitRequests;
		this.houseInfos = houseInfos;
		this.commentInfos = commentInfos;
		this.jointRequestsForRequestUserName = jointRequestsForRequestUserName;
		this.orderInfos = orderInfos;
		this.favorites = favorites;
	}

	// Property accessors

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public MyRole getMyRole() {
		return this.myRole;
	}

	public void setMyRole(MyRole myRole) {
		this.myRole = myRole;
	}

	public String getLoginPassword() {
		return this.loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	public String getPowerPassword() {
		return this.powerPassword;
	}

	public void setPowerPassword(String powerPassword) {
		this.powerPassword = powerPassword;
	}

	public String getIdType() {
		return this.idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getMobilePhone() {
		return this.mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public Timestamp getEnrollDate() {
		return this.enrollDate;
	}

	public void setEnrollDate(Timestamp enrollDate) {
		this.enrollDate = enrollDate;
	}

	public Set getJointRequestsForResponseUserName() {
		return this.jointRequestsForResponseUserName;
	}

	public void setJointRequestsForResponseUserName(
			Set jointRequestsForResponseUserName) {
		this.jointRequestsForResponseUserName = jointRequestsForResponseUserName;
	}

	public Set getVisitRequests() {
		return this.visitRequests;
	}

	public void setVisitRequests(Set visitRequests) {
		this.visitRequests = visitRequests;
	}

	public Set getHouseInfos() {
		return this.houseInfos;
	}

	public void setHouseInfos(Set houseInfos) {
		this.houseInfos = houseInfos;
	}

	public Set getCommentInfos() {
		return this.commentInfos;
	}

	public void setCommentInfos(Set commentInfos) {
		this.commentInfos = commentInfos;
	}

	public Set getJointRequestsForRequestUserName() {
		return this.jointRequestsForRequestUserName;
	}

	public void setJointRequestsForRequestUserName(
			Set jointRequestsForRequestUserName) {
		this.jointRequestsForRequestUserName = jointRequestsForRequestUserName;
	}

	public Set getOrderInfos() {
		return this.orderInfos;
	}

	public void setOrderInfos(Set orderInfos) {
		this.orderInfos = orderInfos;
	}

	public Set getFavorites() {
		return this.favorites;
	}

	public void setFavorites(Set favorites) {
		this.favorites = favorites;
	}

}